﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BuffManager 
{
    
    public Dictionary<string,BuffBase> buffs { get; } = new Dictionary<string,BuffBase>();

    public void GetBuff(BuffBase buff)
    {
        if (buffs.ContainsKey(buff.Name))
        {
            buffs[buff.Name].OnGetSecond();
        }
        else
        {
            buffs.Add(buff.Name, buff);
        }
        
    }

    public void RemoveBuff(BuffBase buff)
    {
        buffs.Remove(buff.Name);
    }
}
